package com.probox.common.entity.mapper.order;

import com.probox.customer.api.domain.CustomerGroupDefinitionQuery;
import com.probox.order.api.domain.OrderPostSaleVo;
import com.probox.common.entity.domain.order.OrderPostSale;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.probox.common.entity.domain.order.vo.PostSaleQuery;
import com.probox.product.api.domain.ProductOptVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单售后Mapper接口
 *
 * @author hds
 * @date 2021-06-07
 */
public interface OrderPostSaleMapper extends BaseMapper<OrderPostSale> {

    List<OrderPostSaleVo> getPostSale(@Param("query") PostSaleQuery query, @Param("list") List<String> list);

    /**
     * 所有退款信息
     * @param itemUid
     * @return
     */
    List<OrderPostSaleVo> getOrderRefund(Long itemUid);

    List<ProductOptVo> getOptCount(CustomerGroupDefinitionQuery query);
}
